<?php


namespace App\Controller\Api;

use App\Middleware\Auth\ApiRefreshTokenMiddleware;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\Middlewares;

#[Controller(prefix: "apitest"), Middlewares([ApiRefreshTokenMiddleware::class])]
class ApiTestController
{
    #[GetMapping(path: "index")]
    public function index()
    {
        return json_encode(userID());
    }
}